﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterCarInsurance.master" AutoEventWireup="true"
    CodeFile="class-1single.aspx.cs" Inherits="car_insurance_class_1single" Async="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="/controls/usrCarDriverDetails.ascx" TagName="usrCarDriver" TagPrefix="uc4" %>
<%@ Register Src="/controls/usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc5" %>
<%@ Register Src="/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<%@ Register Src="/controls/usrGender.ascx" TagName="usrGender" TagPrefix="ucGender" %>
<%@ Register Src="/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc13" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="/controls/CE_Date.js" type="text/javascript"></script>

    <script src="/includes/jtip.js" type="text/javascript"></script>

    <link href="/css/popup_login.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/css/pathbar.css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
       <!--- Path Bar | Starts -->
        <div id="pathbar">
            <div id="divLanguage" class="<%$ Resources:General,Language%>" runat="server">                
                <div class="TwoStepOne">
                </div>
            </div>
        </div>
        <!--- Path Bar | Ends   -->
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <%--<asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>--%>
    <div class="topbar">
    </div>
    <div id="container">
        <div class="body">
            <div class="padding_lr15px">
                <!-- Column Content | Start -->
                <div class="col_content">
                    <div class="top">
                    </div>
                    <div class="body">
                        <div class="padding_lr30px">
                            <h1>
                                <%=GetGlobalResourceObject("Menu", "MotorInsuranceClass1Single")%>
                                :
                                <%=GetGlobalResourceObject("Menu", "QuotesIn1Minute")%></h1>
                            <div id="CarForm">
                                <!-- Form | Start -->
                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                <asp:ValidationSummary ID="vsCarDetail" runat="server" ValidationGroup="cardetail"
                                    ShowSummary="True" HeaderText="<%$ Resources:Menu,RequiredValidation%>" CssClass="errorSummary" />
                                <div>
                                    <%--<asp:HyperLink ID="hplCarDetails" NavigateUrl="~/car-insurance/class-1single.aspx" runat="server">--%>
                                        <asp:Label ID="lblCarInsuranceDetails" runat="server" Text="<%$ Resources:CarInsurance,CarAndProfileDetail%>" />
                                    <%--</asp:HyperLink>--%>
                                    &nbsp;|&nbsp;
                                    <%--<asp:HyperLink ID="hplCarResults" runat="server">--%>
                                        <asp:Label ID="lblQuoteResults" runat="server" Text="<%$ Resources:CarInsurance,QuoteResults%>" />
                                   <%-- </asp:HyperLink>--%>
                                    &nbsp;|&nbsp; <span>
                                        <asp:HyperLink ID="hplLogin" NavigateUrl="~/car-insurance/sign-in.aspx" runat="server"> &raquo; <%=GetGlobalResourceObject("Menu", "SignInViewQuotes")%></asp:HyperLink>
                                    </span>
                                </div>
                                <div class="row" style="display: none;">
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblInsuranceType" runat="server" Text="<%$ Resources:CarInsurance,InsuranceType%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:UpdatePanel ID="uplInsuranceType" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlInsuranceType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlInsuranceType_SelectedIndexChanged">
                                                    <%--<asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />--%>
                                                    <asp:ListItem Value="11" Text="<%$ Resources:CarInsurance,Insurance_ClassOne%>" />
                                                    <%--<asp:ListItem Value="21" Text="<%$ Resources:CarInsurance,Insurance_ClassTwoPlus%>" />
                                                <asp:ListItem Value="31" Text="<%$ Resources:CarInsurance,Insurance_ClassThreePlus%>" />
                                                <asp:ListItem Value="30" Text="<%$ Resources:CarInsurance,Insurance_ClassThree%>" />--%>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvInsuranceType"
                                                    ControlToValidate="ddlInsuranceType" InitialValue="-1" runat="server" ErrorMessage=""
                                                    Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                                <div class="seperator_15px">
                                </div>                             
                                <div id="divExisting" runat="server">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblExistingUser" runat="server" Text="<%$ Resources:CarInsurance,ExistingUser%>" /></div>
                                    <div class="form_col_2 left">
                                        <div class="form_col_2 left">
                                            <asp:RadioButton ID="rdoExistingNo" runat="server" GroupName="existinguser" Checked="true"
                                                onclick="HidePopup();" />
                                            <asp:Label ID="lblNo" runat="server" Text="<%$ Resources:CarInsurance,Option_No%>"></asp:Label>
                                            &nbsp;
                                            <asp:RadioButton ID="rdoExistingYes" runat="server" Text="" GroupName="existinguser"
                                                onclick="ShowHidePasswordPanel(false);ShowPopup();" />
                                            <asp:Label ID="lblYes" runat="server" Text="<%$ Resources:CarInsurance,Option_Yes%>"></asp:Label>
                                        </div>
                                    </div>
                                    
                                    <br />                                   
                                    <div class="seperator_form">
                                    </div>
                                </div>
                                <%--  <div class="seperator_form">
                            </div>--%>
                                <div>
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblGarageType" runat="server" Text="<%$ Resources:CarInsurance,GarageType%>" />
                                    </div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlGarageType" runat="server">
                                            <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />
                                            <asp:ListItem Value="1" Text="<%$ Resources:CarInsurance,Garage_Authorized%>" />
                                            <asp:ListItem Value="2" Text="<%$ Resources:CarInsurance,Garage_Dealer%>" />
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvGarageType"
                                            ControlToValidate="ddlGarageType" InitialValue="-1" runat="server" ErrorMessage=""
                                            Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="left">
                                        <a runat="server" href="<%$ Resources:CarInsuranceToolTips,GarageType%>" class="jTip"
                                            id="two" name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblCarModelYear" runat="server" Text="<%$ Resources:CarInsurance,CarModelYear%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:UpdatePanel ID="uplManYear" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlManufactYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlManufactYear_SelectedIndexChanged">
                                                    <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvManufactYear"
                                                    ControlToValidate="ddlManufactYear" InitialValue="-1" runat="server" ErrorMessage=""
                                                    Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblCarMakeModel" runat="server" Text="<%$ Resources:CarInsurance,CarMakeModel%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:UpdatePanel ID="uplCarInfo" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList runat="server" ID="ddlCarMake" AutoPostBack="true" OnSelectedIndexChanged="ddlCarMake_SelectedIndexChanged">
                                                    <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCarMake" ControlToValidate="ddlCarMake"
                                                    InitialValue="-1" runat="server" ErrorMessage="" Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                                <asp:DropDownList runat="server" ID="ddlModelBodyCCDoor" AutoPostBack="True" OnSelectedIndexChanged="ddlModelBodyCCDoor_SelectedIndexChanged">
                                                    <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvModelBodyCCDoor"
                                                    ControlToValidate="ddlModelBodyCCDoor" InitialValue="-1" runat="server" ErrorMessage=""
                                                    Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                                <asp:Label Visible="false" runat="server" ID="lblModelDesc" />
                                                <asp:Label runat="server" ID="lblCarVehicleType" Text="" Visible="false" />
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                                <%--                            <div class="seperator_form">
                            </div>--%>
                                <div style="display: none;">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblYesAccModTitle" runat="server" Text="<%$ Resources:CarInsurance,AccessaryAndModification%>" /></div>
                                    <div class="form_col_2 left">
                                        <div class="form_col_2 left">
                                            <asp:RadioButton ID="rdoYesAccMod" onclick="CheckAccMod();CheckAccModValidationCss();"
                                                runat="server" GroupName="accmod" />
                                            <asp:Label ID="lblYesAccMod" runat="server" Text="<%$ Resources:CarInsurance,Option_YesHave%>"></asp:Label>
                                            &nbsp;
                                            <asp:RadioButton ID="rdoNoAccMod" onclick="CheckAccMod();CheckAccModValidationCss();"
                                                runat="server" GroupName="accmod" Checked="true" />
                                            <asp:Label ID="lblNoAccMod" runat="server" Text="<%$ Resources:CarInsurance,Option_NoHave%>"></asp:Label>
                                            <div style="display: none">
                                                <asp:TextBox ID="txtAccMod" runat="server"></asp:TextBox>
                                            </div>
                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvAccMod" runat="server"
                                                ControlToValidate="txtAccMod" ErrorMessage="" ValidationGroup="cardetail" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                    <div class="left">
                                        <a runat="server" href="<%$Resources:CarInsuranceToolTips,AccAndMod%>" class="jTip"
                                            id="A1" name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                </div>
                                <%--<div class="seperator_form">
                                    </div>--%>
                                <div id="divAccModAmount" style="display: none;">
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblAccModAmountTitle" runat="server" Text="<%$ Resources:CarInsurance,AccessaryAndModificationAmount%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtAccModAmount" runat="server" MaxLength="7" Text="0" />
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvAccModAmount"
                                            runat="server" ControlToValidate="txtAccModAmount" ErrorMessage="" ValidationGroup="cardetail"
                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revAccModAmount"
                                            ValidationExpression="^\d+$" runat="server" ControlToValidate="txtAccModAmount"
                                            ErrorMessage="" ValidationGroup="cardetail" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:CustomValidator CssClass="validationErrorControl" ID="csvAccModAmount" ClientValidationFunction="CheckAccModAmount"
                                            OnServerValidate="CheckAccModAmount" runat="server" ControlToValidate="txtAccModAmount"
                                            ErrorMessage="" ValidationGroup="cardetail" Display="Dynamic"></asp:CustomValidator>
                                    </div>
                                </div>
                                <%--<div class="seperator_form">
                                    </div>--%>
                                <div style="display: none;">
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblVehicleType" runat="server" Text="<%$ Resources:CarInsurance,VehicleType%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:UpdatePanel ID="uplVehicleType" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlVehicleType" runat="server" OnSelectedIndexChanged="ddlVehicleType_SelectedIndexChanged"
                                                    AutoPostBack="True">
                                                    <%--<asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>" />--%>
                                                    <asp:ListItem Value="110" Text="<%$ Resources:CarInsurance,VehicleType_Private%>" />
                                                    <%--<asp:ListItem Value="120" Text="<%$ Resources:CarInsurance,VehicleType_Commercial%>" />--%>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvVehicleType"
                                                    ControlToValidate="ddlVehicleType" InitialValue="-1" runat="server" ErrorMessage=""
                                                    Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                        <div id="divSumInsured" style="display: none;">
                                            <div>
                                                <div class="indicator trebo_font">
                                                    <asp:UpdatePanel ID="uplSumInsured" runat="server">
                                                        <ContentTemplate>
                                                            <asp:Label runat="server" Text="<%$ Resources:CarInsurance,SumInsured%>" ID="lblSumInsuredTitle"
                                                                Visible="false" />
                                                            <asp:Label runat="server" ID="lblSumInsured" Text="0" Visible="false" />
                                                            <div style="display: none">
                                                                <asp:TextBox ID="txtSumInsured" MaxLength="9" Width="80px" runat="server" />
                                                                <asp:TextBox ID="txtNewSumInsured" MaxLength="9" Width="80px" runat="server" />
                                                                <asp:TextBox ID="txtGroupNo" Text="-1" MaxLength="2" Width="30px" runat="server" />
                                                            </div>
                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvSumInsured"
                                                                InitialValue="0" ControlToValidate="txtSumInsured" runat="server" ErrorMessage=""
                                                                Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revSumInsured"
                                                                ValidationExpression="^\d+$" ControlToValidate="txtSumInsured" runat="server"
                                                                ErrorMessage="" Text="" ValidationGroup="cardetail"></asp:RegularExpressionValidator>
                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvGroupNo" InitialValue="-1"
                                                                ControlToValidate="txtSumInsured" runat="server" ErrorMessage="" Text="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                            <div class="clear">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div style="display: none;">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblDeduct" runat="server" Text="<%$ Resources:CarInsurance,DEC%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlDeduct" Width="145px" runat="server">
                                            <%--<asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />--%>
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Option_DeductNo%>" Value="0" />
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Option_DeductYes%>" Value="5000" />
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Option_DeductAll%>" Value="-1" />
                                        </asp:DropDownList>
                                        <%--                                    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDeduct" ControlToValidate="ddlDeduct"
                                        runat="server" ErrorMessage="" Text="" InitialValue="-1" ValidationGroup="cardetail"></asp:RequiredFieldValidator>--%>
                                    </div>
                                </div>
                                <%--                            <div class="seperator_form">
                            </div>--%>
                                <div style="display: none;">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblProvinceofRegistration" runat="server" Text="<%$ Resources:CarInsurance,ProvinceofRegistration%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlProvinceRegistration" Width="145px" runat="server">
                                            <%--<asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />--%>
                                            <asp:ListItem Text="<%$ Resources:CarInsurance,Province_BKK%>" Value="BKK" />
                                            <%--<asp:ListItem Text="<%$ Resources:CarInsurance,Province_UPC%>" Value="UPC" />--%>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvProvinceRegistration"
                                            ControlToValidate="ddlProvinceRegistration" runat="server" ErrorMessage="" Text=""
                                            InitialValue="-1" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <%--                            <div class="seperator_form">
                            </div>--%>
                                <div style="display: none;">
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblAnyClaimLastYear" runat="server" Text="<%$ Resources:CarInsurance,AnyClaimLastYear%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:RadioButton ID="rdoYesClaimLastYear" onclick="CheckClaim();CheckClaimValidationCss();"
                                            runat="server" GroupName="anyclaim"></asp:RadioButton>
                                        <asp:Label ID="lblYesClaimLastYear" runat="server" Text="<%$ Resources:CarInsurance,Option_YesHave%>"></asp:Label>
                                        &nbsp;
                                        <asp:RadioButton ID="rdoNoClaimLastYear" onclick="CheckClaim();CheckClaimValidationCss();"
                                            runat="server" GroupName="anyclaim" Checked="true"></asp:RadioButton>
                                        <asp:Label ID="lblNoClaimLastYear" runat="server" Text="<%$ Resources:CarInsurance,Option_NoHave%>"></asp:Label>
                                        <div style="display: none">
                                            <asp:TextBox ID="txtAnyClaim" runat="server"></asp:TextBox>
                                        </div>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvAnyClaim" runat="server"
                                            ControlToValidate="txtAnyClaim" ErrorMessage="" ValidationGroup="cardetail" Display="Dynamic"
                                            Text=""></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="left">
                                        <%--                                    <a runat="server" href="<%$Resources:CarInsuranceToolTips,Claim%>" class="jTip" id="A2"
                                        name="<%$ Resources:CarInsurance,Help%>">
                                        <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a>--%>
                                    </div>
                                </div>
                                <%--                            <div class="seperator_form">
                            </div>--%>
                                <div style="display: none;">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblNCB" runat="server" Text="<%$ Resources:CarInsurance,NCB%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlNCB" Width="80px" runat="server">
                                            <%--<asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1"></asp:ListItem>--%>
                                            <asp:ListItem Text="0" Value="0"></asp:ListItem>
                                            <%--                                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                        <asp:ListItem Text="30" Value="30"></asp:ListItem>
                                        <asp:ListItem Text="40" Value="40"></asp:ListItem>
                                        <asp:ListItem Text="50" Value="50"></asp:ListItem>--%>
                                            <%--<asp:ListItem Text="50" Value="50"></asp:ListItem>--%>
                                        </asp:DropDownList>
                                        %
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvNCB" Enabled="true"
                                            runat="server" InitialValue="-1" ControlToValidate="ddlNCB" ErrorMessage="" ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="left">
                                        <a runat="server" href="<%$Resources:CarInsuranceToolTips,NCB%>" class="jTip" id="A3"
                                            name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <asp:UpdatePanel ID="updDriver" EnableViewState="true" runat="server" Visible="false">
                                    <ContentTemplate>
                                        <div runat="server" id="divSpecifyDriver" visible="false">
                                            <div class="form_col_1 left">
                                                <asp:Label ID="lblSpecifyNamedDriver" runat="server" Text="<%$ Resources:CarInsurance,SpecifyNamedDriver%>" /></label></div>
                                            <div class="form_col_2 left" id="divYesAddDriver">
                                                <asp:RadioButton AutoPostBack="true" ID="rdoYesAddDriver" CausesValidation="false"
                                                    runat="server" GroupName="adddriver" OnCheckedChanged="rdoYesAddDriver_CheckedChanged" />
                                                <asp:Label ID="lblYesAddDriver" runat="server" Text="<%$ Resources:CarInsurance,Option_YesSpecify%>"></asp:Label>
                                                &nbsp;
                                                <asp:RadioButton AutoPostBack="true" ID="rdoNoAddDriver" CausesValidation="false"
                                                    Checked="true" runat="server" GroupName="adddriver" OnCheckedChanged="rdoNoAddDriver_CheckedChanged" />
                                                <asp:Label ID="lblNoAddDriver" runat="server" Text="<%$ Resources:CarInsurance,Option_NoSpecify%>"></asp:Label>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtAddDriver" runat="server"></asp:TextBox>
                                                </div>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvAddDriver" runat="server"
                                                    ControlToValidate="txtAddDriver" ErrorMessage="" ValidationGroup="cardetail"
                                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                            </div>
                                            <div class="left">
                                                <a runat="server" href="<%$Resources:CarInsuranceToolTips,DriverName%>" class="jTip"
                                                    id="three" name="<%$ Resources:CarInsurance,Help%>">
                                                    <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                        </div>
                                        <div class="seperator_form">
                                        </div>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:UpdatePanel ID="uplDriverList" EnableViewState="true" runat="server">
                                    <ContentTemplate>
                                        <div id="divAddDriver" runat="server" visible="false">
                                            <div class="form_col_1 left">
                                                <asp:Label ID="lblNoOfAdditionalDrivers" runat="server" Text="<%$ Resources:CarInsurance,NoOfNamedDrivers%>" /></div>
                                            <div class="form_col_2 left">
                                                <asp:DropDownList CausesValidation="false" AutoPostBack="true" ID="ddlDriverCount"
                                                    runat="server" Width="50px" OnSelectedIndexChanged="ddlDriverCount_SelectedIndexChanged">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvNoOfDriver"
                                                    runat="server" ControlToValidate="ddlDriverCount" InitialValue="-1" ErrorMessage=""
                                                    ValidationGroup="cardetail"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                        <asp:Panel ID="pnlDriver" runat="server" Width="100%">
                                            <div id="divDriver1" runat="server" visible="false">
                                                <uc4:usrCarDriver ID="UsrCarDriver1" runat="server" DriverNo="1" ValidationGroup="cardetail"
                                                    IsEnabled="true" />
                                                <div class="seperator_form">
                                                </div>
                                            </div>
                                            <div id="divDriver2" runat="server" visible="false">
                                                <uc4:usrCarDriver ID="UsrCarDriver2" runat="server" DriverNo="2" ValidationGroup="cardetail"
                                                    IsEnabled="true" />
                                                <div class="seperator_form">
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <div style="display: none;">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblCTPL" runat="server" Text="<%$ Resources:CarInsurance,CTPL%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:RadioButton ID="rdoYesCTPL" onclick="CheckCTPL();CheckCTPLValidationCss();"
                                            runat="server" GroupName="ctpl" />
                                        <asp:Label ID="lblYesCTPL" runat="server" Text="<%$ Resources:CarInsurance,Option_Yes%>"></asp:Label>
                                        &nbsp;
                                        <asp:RadioButton ID="rdoNoCTPL" onclick="CheckCTPL();CheckCTPLValidationCss();" runat="server"
                                            GroupName="ctpl" Checked="true" />
                                        <asp:Label ID="lblNoCTPL" runat="server" Text="<%$ Resources:CarInsurance,Option_No%>"></asp:Label>
                                        <div style="display: none">
                                            <asp:TextBox ID="txtCTPL" runat="server"></asp:TextBox>
                                        </div>
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCTPL" runat="server"
                                            ControlToValidate="txtCTPL" ErrorMessage="" ValidationGroup="cardetail" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblCoverCommencementDate" runat="server" Text="<%$ Resources:CarInsurance,CoverCommencementDate%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlCoverageComDate" onchange="GetCoverageEndDate()" runat="server">
                                        </asp:DropDownList>
                                        &nbsp;
                                        <asp:Label runat="server" Visible="false" ID="lblCoverageExpireDateTitle" Text="<%$Resources:CarInsurance,CoverExpiryDate %>"
                                            CssClass="font12" />
                                        <asp:Label runat="server" Visible="false" ID="lblCoverageExpireDate" CssClass="font12" />
                                        <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCoverComDate"
                                            runat="server" InitialValue="-1" ControlToValidate="ddlCoverageComDate" ErrorMessage=""
                                            ValidationGroup="cardetail" Display="Dynamic"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblCurrentInsurer" runat="server" Text="<%$ Resources:CarInsurance,CurrentInsurer%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:DropDownList ID="ddlCurInsuranceCompany" runat="server">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvCurInsuranceCompany" ControlToValidate="ddlCurInsuranceCompany"
                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="cardetail"
                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <!--Profile-->
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblFirstName" runat="server" Text="<%$ Resources:CarInsurance,FirstName%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtFirstName" Width="230" MaxLength="50" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" CssClass="validationErrorControl"
                                            ValidationGroup="cardetail" ErrorMessage="" Text="" ControlToValidate="txtFirstName"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revFirstName" runat="server" ValidationGroup="cardetail"
                                            ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                            ControlToValidate="txtFirstName" ErrorMessage=""></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 comp left">
                                        <asp:Label ID="lblSurName" runat="server" Text="<%$ Resources:CarInsurance,LastName%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtSurName" Width="230" MaxLength="50" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvSurName" runat="server" CssClass="validationErrorControl"
                                            ValidationGroup="cardetail" ErrorMessage="" Text="" ControlToValidate="txtSurName"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revSurname" runat="server" ValidationGroup="cardetail"
                                            ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                            ControlToValidate="txtSurName" ErrorMessage=""></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
<%--                                <asp:UpdatePanel ID="uplConfirmEmail" runat="server">
                                <ContentTemplate>--%>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblEmail" runat="server" Text="<%$ Resources:CarInsurance,EmailAddress%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtEmailAddress" runat="server" MaxLength="100" Width="230" onchange="ShowHideConfirmEmail(true)"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Text="" CssClass="validationErrorControl"
                                            ValidationGroup="cardetail" ErrorMessage="" ControlToValidate="txtEmailAddress"
                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="rfvEmailValid" Text="" CssClass="validationErrorControl"
                                            runat="server" ValidationGroup="cardetail" ErrorMessage="" ControlToValidate="txtEmailAddress"
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </div>
                                    <div class="left">
                                        <a runat="server" href="<%$Resources:CarInsuranceToolTips,Email%>" class="jTip" id="A4"
                                            name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                </div>

                                <div id="divConfirmEmail" style="display :none">
                                    <div class="seperator_form">
                                    </div>                                    
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblConfirmEmail" runat="server" Text="<%$ Resources:Menu,ConfirmEmail%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtConfirmEmailAddress" runat="server" MaxLength="100" Width="230"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvConfirmEmail" runat="server" Text="" CssClass="validationErrorControl"
                                             Enabled ="false" ValidationGroup="cardetail" ErrorMessage="" ControlToValidate="txtConfirmEmailAddress"
                                            Display="Dynamic" ></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="rfvConfirmEmailValid" Text="" CssClass="validationErrorControl"
                                            runat="server" Enabled="false" ValidationGroup="cardetail" ErrorMessage="" ControlToValidate="txtConfirmEmailAddress"
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:CompareValidator id="cvConfirmEmail" runat="server"  ErrorMessage="" Enabled ="false" ValidationGroup="cardetail" ControlToValidate="txtConfirmEmailAddress" ControlToCompare="txtEmailAddress"></asp:CompareValidator>  
                                    </div>

                                </div>
                                        
<%--                               </ContentTemplate> 
                                </asp:UpdatePanel>--%>
                                                                                                
                                <div class="seperator_form">
                                </div>
                                <div runat="server" id="divPassword" visible="false">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblPassword" runat="server" Text="<%$ Resources:CarInsurance,NewPassword%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtPassword" Width="230" MaxLength="20" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvPassword" runat="server" CssClass="validationErrorControl"
                                            ValidationGroup="cardetail" ErrorMessage="" Text="" ControlToValidate="txtPassword"
                                            Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revPassword" runat="server" ValidationGroup="cardetail"
                                            ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                            ControlToValidate="txtPassword" ErrorMessage="" Enable="false"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <%--<div class="seperator_form">
                                    </div>--%>
                                <div runat="server" id="divReEnterPassword" visible="false">
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblReEnterPassword" runat="server" Text="<%$ Resources:CarInsurance,ReEnterPassword%>" /></div>
                                    <div class="form_col_2 left">
                                        <asp:TextBox ID="txtReEnterPassword" Width="230" MaxLength="20" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvReEnterPassword" runat="server" CssClass="validationErrorControl"
                                            ValidationGroup="cardetail" ErrorMessage="" Text="" ControlToValidate="txtReEnterPassword"
                                            Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revReEnterPassword" runat="server" ValidationGroup="cardetail"
                                            ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                            ControlToValidate="txtReEnterPassword" ErrorMessage="" Enabled="false"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <%--<div class="seperator_form">
                                    </div>--%>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblMobileNo" runat="server" Text="<%$ Resources:CarInsurance,MobileNo%>" /></div>
                                    <div class="form_col_2 left">
                                        <uc10:usrPhoneNo ID="txtMobileNo" ValidationGroup="cardetail" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                            PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                            runat="server" />
                                    </div>
                                    <div class="left">
                                        <a runat="server" href="<%$Resources:CarInsuranceToolTips,Mobile%>" class="jTip"
                                            id="A5" name="<%$ Resources:CarInsurance,Help%>">
                                            <img src="/images/icon/help.png" width="20" height="20" alt="Help" /></a></div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblGender" runat="server" Text="<%$ Resources:CarInsurance,Gender%>" /></div>
                                    <div class="form_col_2 left">
                                        <ucGender:usrGender ID="ddlGender" ValidationGroup="cardetail" IsEnabled="true" ErrorMessage=""
                                            runat="server" />
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblDOB" runat="server" Text="<%$ Resources:CarInsurance,DOB%>" /></div>
                                    <div class="form_col_2 left">
                                        <uc13:usrDate ValidationGroup="cardetail" ErrorMessage="" ID="usrDOB" runat="server" />
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        <asp:Label ID="lblOccupation" runat="server" Text="<%$ Resources:CarInsurance,Occupation%>" /></div>
                                    <div class="form_col_2 left">
                                        <uc5:usrOccupation ID="ddlOccupation" runat="server" IsEnabled="true" ValidationGroup="cardetail"
                                            ErrorMessage="" />
                                    </div>
                                </div>
                                <div class="seperator_form">
                                </div>
                                <div>
                                    <div class="form_col_1 left">
                                        &nbsp;
                                    </div>
                                    <div class="form_col_2 left">
                                        <asp:CheckBox ID="checkIsAgreement" runat="server" Checked="true" Text="<%$ Resources:CarInsurance,Agreement%>" />
                                        <div class="seperator_form">
                                        </div>
                                    </div>
                                </div>
                                <!--End Profile-->
                                <div class="seperator_15px">
                                </div>
                                <div>
                                    <div>
                                        <div class="form_col_1 left">
                                            &nbsp;
                                        </div>
                                        <div class="form_col_2 left">
                                            <asp:Button ID="ibtNext" onmousedown="this.className = 'button_next_mousedown';"
                                                onmouseup="this.className = 'button_next';" onmouseout="this.className = 'button_next';"
                                                CssClass="button_next" OnClientClick="LoadValidationErrorCss();CheckOptionValidationCss();if (Page_ClientValidate('cardetail')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                runat="server" ValidationGroup="cardetail" AlternateText="Next" ToolTip="Next" OnClick="btnNext_Click"
                                                CausesValidation="true" />
                                        </div>
                                    </div>
                                    <div class="seperator_15px">
                                    </div>
                                    <!-- Form | End   -->
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Column Content | End   -->
                    <div id="divPopup">
                        <div style="margin: 0 auto; width: 266px; text-align: center; display: none;">
                            <asp:ImageButton ID="imgbtnTest" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                AlternateText="Set Travel Insurance Reminder" />
                        </div>
                        <cc1:ModalPopupExtender ID="mpePassword" runat="server" TargetControlID="imgbtnTest"
                            PopupControlID="pnlPassword" BackgroundCssClass="modalBackground" DropShadow="true"
                            BehaviorID="mdlPopupPassword">
                        </cc1:ModalPopupExtender>
                        <asp:Panel ID="pnlPassword" runat="server" Style="display: none; background-color: White;"
                            DefaultButton="imgbtnLogin">
                            <asp:UpdatePanel ID="upPassword" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="sr_wrapper_travel_new" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                                        overflow: visible; height: auto;">
                                        <div class="sr_content_travel_3">
                                            <div class="sr_form_new">
                                                <h1>
                                                    <%= GetGlobalResourceObject("Menu","SignInNow") %></h1>
                                                <div>
                                                    <asp:Label ID="lblAccountMessage" runat="server"></asp:Label>
                                                </div>
                                                <br />
                                                <div>
                                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="userpassword"
                                                        ShowSummary="True" CssClass="errorSummary" HeaderText="<%$Resources:Menu,RequiredField %>">
                                                    </asp:ValidationSummary>
                                                </div>
                                                <br />
                                                <div class="f_row">
                                                    <span class="form_l email_ico">
                                                        <%= GetGlobalResourceObject("Menu","EmailAddress") %></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtExEmail" runat="server" Width="210px" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvExEmail" CssClass="validationErrorControl" runat="server"
                                                            ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvExEmailValid"
                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <span class="form_l name_ico">
                                                        <%= GetGlobalResourceObject("Menu","Password") %></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtExAuthCode" runat="server" TextMode="Password" CssClass="form_login" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvExAuthCode" CssClass="validationErrorControl"
                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExAuthCode"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:Label runat="server" ID="lblEmailMessage" Visible="false" CssClass="validationError"></asp:Label>
                                                    </div>
                                                    <br />
                                                    <br />
                                                    <div class="f_field">
                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/user/passwordrecovery.aspx"
                                                             onclick="HidePopup();ShowHidePasswordPanel(true);"><%= GetGlobalResourceObject("Menu", "ForgotPassword")%></asp:HyperLink>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <asp:Label ID="Label1" runat="server" CssClass="assumption"></asp:Label>
                                                </div>
                                                <div id="div1" style="display: none">
                                                    <table style="width: 100%;">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                <img src="/images/loader/loader_main.gif" id="img1" alt="Loading" width="30" height="20" />
                                                                <span id="Span1">Please wait...</span>
                                                            </td>
                                                        </tr>
                                                        <tr align="right">
                                                            <td>
                                                                <a id="A2" href="javascript:StopSubmit();">Cancel</a>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="f_row">
                                                    &nbsp;</div>
                                                <div class="f_row">
                                                    <asp:Label ID="Label2" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                                        Font-Names="Arial" runat="server"></asp:Label>
                                                </div>
                                                <div class="f_row sr_button">
                                                    <asp:Button ID="imgbtnLogin" runat="server" onmousedown="this.className = 'button_proceed_mousedown';"
                                                        onmouseup="this.className = 'button_proceed';" onmouseout="this.className = 'button_proceed';"
                                                        CssClass="button_proceed" OnClientClick="LoadValidationErrorCss();CheckOptionValidationCss();HideOnSubmit();if (Page_ClientValidate('userpassword')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                        ValidationGroup="userpassword" ToolTip="Sign in" OnClick="imgbtnLogin_Click" /><div
                                                            style="display: none;">
                                                            <input id="inputLoginCount" runat="server" value="0" />
                                                            <input id="inputHideSignal" runat="server" value="0" /><input id="inputLoginHide"
                                                                runat="server" value="0" /></div>
                                                </div>
                                            </div>
                                        </div>
                                        <div style="text-align: left; width: 100%;">
                                            <asp:Button ID="btnPasswordClose" runat="server" Text="" Width="87px" OnClick="btnPasswordClose_Click"
                                                OnClientClick="HidePopup();ShowHidePasswordPanel(true);" CssClass="button_close" />
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </asp:Panel>
                        
                        
                                         
                        
<%--                        <cc1:ModalPopupExtender ID="mpePopupConfirm" runat="server" TargetControlID="imgbtnTest"
                            PopupControlID="pnlPopupConfirm" BackgroundCssClass="modalBackground" DropShadow="true" CancelControlID="btnConfirmClose"
                            BehaviorID="mdlPopupConfirm">
                        </cc1:ModalPopupExtender>
                        <asp:Panel ID="pnlPopupConfirm" runat="server" Style="display: none; background-color: White;"
                            DefaultButton="btnConfirmEmail">
                            <asp:UpdatePanel ID="upEmail" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <div class="sr_wrapper_travel_new" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                                        overflow: visible; height: auto;">
                                        <div class="sr_content_travel_3">
                                            <div class="sr_form_new">
                                                <h1>
                                                    <%= GetGlobalResourceObject("Menu","SignInNow") %></h1>
                                                <div>
                                                    <asp:Label ID="lblConfirmMessage" runat="server"></asp:Label>
                                                </div>
                                                <br />
                                                <div>
                                                    <asp:ValidationSummary ID="ValidationSummaryEmail" runat="server" ValidationGroup="useremail"
                                                        ShowSummary="True" CssClass="errorSummary" HeaderText="<%$Resources:Menu,RequiredField %>">
                                                    </asp:ValidationSummary>
                                                </div>
                                                <br />
                                                <div class="f_row">
                                                    <span class="form_l email_ico">
                                                        <%= GetGlobalResourceObject("Menu","EmailAddress") %></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtRegisterEmail" runat="server" Width="210px" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvRegisterEmail" CssClass="validationErrorControl" runat="server"
                                                            ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtRegisterEmail"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvRegisterEmailValid"
                                                            runat="server" ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtRegisterEmail"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <span class="form_l email_ico">
                                                        <%= GetGlobalResourceObject("Menu", "ConfirmEmail")%></span>
                                                    <div class="f_field">
                                                        <asp:TextBox ID="txtConfirmEmail" runat="server"  Width="210px" CssClass="form_login" />
                                                    </div>
                                                    <div class="f_field">
                                                        <asp:RequiredFieldValidator ID="rfvConfirmEmail" CssClass="validationErrorControl"
                                                            runat="server" ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtConfirmEmail"
                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvConfirmEmailValid"
                                                            runat="server" ValidationGroup="useremail" ErrorMessage="" Text="" ControlToValidate="txtConfirmEmail"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator> 
                                                        
                                                        <asp:CompareValidator id="cv" runat="server" ErrorMessage="" ControlToValidate="txtRegisterEmail" ControlToCompare="txtConfirmEmail"></asp:CompareValidator>                                                               
                                                        <asp:Label runat="server" ID="lblConfirmEmailMessage" Visible="false" CssClass="validationError"></asp:Label>
                                                    </div>
                                                    <br />
                                                    <br />
                                                    <div class="f_field">

                                                    </div>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                                <div class="f_row">
                                                    <asp:Label ID="lblConfirmEmail" runat="server" CssClass="assumption"></asp:Label>
                                                </div>
                                                <div id="div2" style="display: none">
                                                    <table style="width: 100%;">
                                                        <tr>
                                                            <td align="center" valign="middle">
                                                                <img src="../images/loading7.gif" id="imgLoading" alt="Loading" width="30" height="20" />
                                                                <span id="Span2">Please wait...</span>
                                                            </td>
                                                        </tr>
                                                        <tr align="right">
                                                            <td>
                                                                <a id="A6" href="javascript:StopSubmit();">Cancel</a>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="f_row">
                                                    &nbsp;</div>
                                                <div class="f_row">
                                                    <asp:Label ID="lblCheck" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                                        Font-Names="Arial" runat="server"></asp:Label>
                                                </div>
                                                <div class="f_row sr_button">
                                                    <asp:Button ID="btnConfirmEmail" runat="server" onmousedown="this.className = 'button_proceed_mousedown';"
                                                        onmouseup="this.className = 'button_proceed';" onmouseout="this.className = 'button_proceed';"
                                                        CssClass="button_proceed" OnClientClick="LoadValidationErrorCss();CheckOptionValidationCss();HideOnSubmit();CheckConfirmEmail();if (Page_ClientValidate('useremail')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                        ValidationGroup="useremail" ToolTip="Confirm Email" OnClick="btnNext_Click"/>
                                                </div>
                                            </div>
                                        </div>
                                        <div style="text-align: left; width: 100%;">
                                            <asp:Button ID="btnConfirmClose" runat="server" Text="" Width="87px" 
                                                OnClientClick="HidePopupConfirm();ShowHideConfirmPanel(true);" CssClass="button_close" />
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </asp:Panel>    --%>                    
                    </div>
                    <!-- Column Right | Start -->
                    <div class="bottom">
                    </div>
                </div>
                <!-- Column Content | End   -->
                <!-- Column Right | Start -->
                <div>
<%--                    <div class="col_right-white">
                        <div class="top">
                        </div>
                        <div class="body text_center">
                            
                            <div class="tip">
                                <asp:Image ID="Image1" runat="server" ImageUrl="<%$Resources:ImageResource,PaymentBannerUrl%>"
                                    Width="234" Height="188" AlternateText="Payment" />
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                    <div class="seperator_15px">
                    </div>
                    <div class="col_right-white">
                        <div class="top">
                        </div>
                        <div class="body text_center">
                            <div class="tip">
                                <asp:Image ID="callus" runat="server" ImageUrl="<%$Resources:ImageResource,OfferBannerUrl1%>"
                                    Width="234" Height="188" AlternateText="15% Off" />
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>

                    <div class="seperator"></div>--%>
                    
                    <div id="Hotline" style="text-align:center; padding-left:15px;">
                    <asp:Image ID="imgBanner" runat="server" ImageUrl="<%$Resources:ImageResource,StepToQuote2Url%>" AlternateText="Payment" />
                    <%--<asp:Image runat="server" ID="imgHotLine" ImageUrl="<%$ Resources:ImageResource,HotLineInnerUrl%>" alt="Hotline 02-268-8222 - Monday - Friday : 9.30am to 5.30pm" />--%>
                    </div>


                </div>
                <!-- Column Right | End   -->
            </div>
        </div>
    </div>
    <div class="bottom">
    </div>
    <div id="divHiddenMonths" style="display: none;">
        <input runat="server" id="lblJan" type="hidden" value="<%$ Resources:MonthResource, January%>" />
        <input runat="server" id="lblFeb" type="hidden" value="<%$ Resources:MonthResource, February%>" />
        <input runat="server" id="lblMar" type="hidden" value="<%$ Resources:MonthResource, March%>" />
        <input runat="server" id="lblApr" type="hidden" value="<%$ Resources:MonthResource, April%>" />
        <input runat="server" id="lblMay" type="hidden" value="<%$ Resources:MonthResource, May%>" />
        <input runat="server" id="lblJun" type="hidden" value="<%$ Resources:MonthResource, June%>" />
        <input runat="server" id="lblJul" type="hidden" value="<%$ Resources:MonthResource, July%>" />
        <input runat="server" id="lblAug" type="hidden" value="<%$ Resources:MonthResource, August%>" />
        <input runat="server" id="lblSep" type="hidden" value="<%$ Resources:MonthResource, September%>" />
        <input runat="server" id="lblOct" type="hidden" value="<%$ Resources:MonthResource, October%>" />
        <input runat="server" id="lblNov" type="hidden" value="<%$ Resources:MonthResource, November%>" />
        <input runat="server" id="lblDec" type="hidden" value="<%$ Resources:MonthResource, December%>" />
        <input runat="server" id="lblCultureInfo" type="hidden" />
    </div>

    <script type="text/javascript">
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);
        var postBackElement;
        function InitializeRequest(sender, args) {
            if (prm.get_isInAsyncPostBack())
                args.set_cancel(true);
            postBackElement = args.get_postBackElement();
            //|| postBackElement.id == '<%=rdoYesAddDriver.ClientID%>'
            //|| postBackElement.id == '<%=rdoNoAddDriver.ClientID%>'
            /*if (postBackElement.id == '<%=ddlInsuranceType.ClientID%>'
            || postBackElement.id == '<%=ddlManufactYear.ClientID%>'
            || postBackElement.id == '<%=ddlCarMake.ClientID%>'
            || postBackElement.id == '<%=ddlModelBodyCCDoor.ClientID%>'
            || postBackElement.id == '<%=rdoYesClaimLastYear.ClientID%>'
            || postBackElement.id == '<%=rdoNoClaimLastYear.ClientID%>'
            ) {
            OnOffUpdateProgress(true);
            }*/
            OnOffUpdateProgress(true);
        }

        function OnOffUpdateProgress(onOff) {
            $get('<%=ddlInsuranceType.ClientID%>').disabled = onOff;
            $get('<%=ddlManufactYear.ClientID%>').disabled = onOff;
            $get('<%=ddlCarMake.ClientID%>').disabled = onOff;
            $get('<%=ddlModelBodyCCDoor.ClientID%>').disabled = onOff;
            $get('<%=ddlVehicleType.ClientID%>').disabled = onOff;
            //$get('<%=rdoYesAccMod.ClientID%>').disabled = onOff;
            //$get('<%=rdoNoAccMod.ClientID%>').disabled = onOff;
            $get('<%=txtAccModAmount.ClientID%>').disabled = onOff;
            if ($get('<%=rdoYesAddDriver.ClientID%>') != null)
                $get('<%=rdoYesAddDriver.ClientID%>').disabled = onOff;
            if ($get('<%=rdoNoAddDriver.ClientID%>') != null)
                $get('<%=rdoNoAddDriver.ClientID%>').disabled = onOff;
            if ($get('<%=ddlDriverCount.ClientID%>') != null)
                $get('<%=ddlDriverCount.ClientID%>').disabled = onOff;
            //$get('<%=rdoYesClaimLastYear.ClientID%>').disabled = onOff;
            //$get('<%=rdoNoClaimLastYear.ClientID%>').disabled = onOff;
            //$get('<%=rdoYesAddDriver.ClientID%>').disabled = onOff;
            //$get('<%=rdoNoAddDriver.ClientID%>').disabled = onOff;
        }

        function EndRequest(sender, args) {
            if (postBackElement.id == '<%=ddlInsuranceType.ClientID%>'
                    || postBackElement.id == '<%=ddlManufactYear.ClientID%>'
                    || postBackElement.id == '<%=ddlCarMake.ClientID%>'
                    || postBackElement.id == '<%=ddlModelBodyCCDoor.ClientID%>'
                    || postBackElement.id == '<%=rdoYesClaimLastYear.ClientID%>'
                    || postBackElement.id == '<%=rdoNoClaimLastYear.ClientID%>'
                    || postBackElement.id == '<%=rdoYesAddDriver.ClientID%>'
                    || postBackElement.id == '<%=rdoNoAddDriver.ClientID%>'
                    || postBackElement.id == '<%=ddlVehicleType.ClientID%>'
                    || postBackElement.id == '<%=ddlDriverCount.ClientID%>') {
                CheckAccMod();
                OnOffUpdateProgress(false);
                //JT_init();
            }
        }

        function ShowHideDiv(divName, varOnOff) {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }

        function GetCoverageEndDate() {
            var _commDate = document.getElementById('<%=ddlCoverageComDate.ClientID%>');
            var _expDate = document.getElementById('<%=lblCoverageExpireDate.ClientID%>');
            var now = new Date();
            var next = new Date();
            var month = new Array(12);

            month[0] = document.getElementById('<%=lblJan.ClientID%>').value;  //"January";
            month[1] = document.getElementById('<%=lblFeb.ClientID%>').value; //"February";
            month[2] = document.getElementById('<%=lblMar.ClientID%>').value; // "March";
            month[3] = document.getElementById('<%=lblApr.ClientID%>').value; // "April";
            month[4] = document.getElementById('<%=lblMay.ClientID%>').value; //"May";
            month[5] = document.getElementById('<%=lblJun.ClientID%>').value; // "June";
            month[6] = document.getElementById('<%=lblJul.ClientID%>').value; //"July";
            month[7] = document.getElementById('<%=lblAug.ClientID%>').value; //"August";
            month[8] = document.getElementById('<%=lblSep.ClientID%>').value; //"September";
            month[9] = document.getElementById('<%=lblOct.ClientID%>').value; //"October";
            month[10] = document.getElementById('<%=lblNov.ClientID%>').value; //"November";
            month[11] = document.getElementById('<%=lblDec.ClientID%>').value; //"December";
            //alert(_commDate.value);
            var strCommDate = _commDate.value;
            if (strCommDate != "-1") {
                var strDay = strCommDate.substring(0, 2);
                //var strMonth = (parseInt(strCommDate.substring(2, 4)) - 1).toString();
                var strMonth = strCommDate.substring(2, 4) - 1;
                var strYear = strCommDate.substring(4, 8);
                //alert(strYear + "/" + strMonth + "/" + strDay);
                now.setFullYear(strYear, strMonth, strDay);
                next.setFullYear((parseInt(strYear) + 1).toString(), strMonth, (now.getDate()).toString());

                var strExpiryDate = next.getDate() + "/" + month[next.getMonth()] + "/" + next.getFullYear();

                //alert(strCommDate);
                //alert(strDay + ' ' + strMonth + ' ' + strYear);
                //alert(now);

                if (document.getElementById('<%=lblCultureInfo.ClientID%>').value == 'th-TH') {
                    strExpiryDate = next.getDate() + "/" + month[next.getMonth()] + "/" + (next.getFullYear() + 543);
                }
                else {
                    strExpiryDate = next.getDate() + "/" + month[next.getMonth()] + "/" + next.getFullYear();
                }

               // _expDate.innerHTML = strExpiryDate;
                // alert(next.getFullYear() + 543);

            }
            else {
                //_expDate.innerHTML = "";
            }
            //Cover Expiry Date: 22/Mar/2012
        }

        function showhide(el) {

            el = document.getElementById(el);
            el.style.display = (el.style.display == "none") ? "block" : "none";

        }

        window.onload = function() {
            //showhide('divCarMakeModel');
            //CheckedChanged();
            CheckAccMod();
        }

        var CarMakeModel;
        var ArrCarMakeModel;

        function CarMakeClientValidate(source, arguments) {
            if (arguments.Value == -1) {
                arguments.IsValid = false;
            } else {
                arguments.IsValid = true;
            }
        }

        function CarModelClientValidate(source, arguments) {
            if (arguments.Value == -1) {
                arguments.IsValid = false;
            } else {
                arguments.IsValid = true;
            }
        }

        function ShowHideAccMod(varOnOff) {
            document.getElementById('divAccModAmount').style.display = varOnOff == true ? '' : 'none';
            ValidatorEnable(document.getElementById('<%=rfvAccModAmount.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=revAccModAmount.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=csvAccModAmount.ClientID%>'), varOnOff);
        }

        function ShowHideConfirmEmail(varOnOff) {
            document.getElementById('divConfirmEmail').style.display = varOnOff == true ? '' : 'none';
            ValidatorEnable(document.getElementById('<%=rfvConfirmEmail.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvConfirmEmailValid.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=cvConfirmEmail.ClientID%>'), varOnOff);
        }
        
        function CheckOptionValidationCss() {
            //CheckRedPlateValidationCss();
            CheckClaimValidationCss();
            CheckCTPLValidationCss();
            CheckAccModValidationCss();
            //alert(document.getElementById('<%=divSpecifyDriver.ClientID%>'));
            if (document.getElementById('<%=divSpecifyDriver.ClientID%>') != null) {
                CheckAddDriverValidationCss();
            }
        }

        //CAR POLICY DETAILS HERE

        function CheckAccModAmount(source, arguments) {
            var _retValue = true;
            var _amount = parseInt(document.getElementById("<%=txtAccModAmount.ClientID%>").value);
            //alert(_amount);
            var txtSumInsured = document.getElementById("<%=txtSumInsured.ClientID%>");
            var lblSumInsured = document.getElementById("<%=lblSumInsured.ClientID%>");
            var txtNewSumInsured = document.getElementById("<%=txtNewSumInsured.ClientID%>");
            var _sumAmount = txtSumInsured.value;
            if (_sumAmount != null) {
                if (_sumAmount <= 0) {
                    _sumAmount = 0;
                }
            }
            else {
                _sumAmount = 0;
            }

            //alert(_sumAmount);
            if (_sumAmount > 0 && _amount > 0) {
                if (_amount > 100000) {
                    //alert("Accessary or Modifications Amount should NOT be greater than 100,000\nor 10% of Sum Insured Amount");
                    //alert("Invalid amount!");
                    _retValue = false;
                }
                else if (_amount > (_sumAmount * 0.1)) {
                    //alert("Accessary or Modifications Amount should NOT be greater than 100,000or 10% of Sum Insured Amount");
                    //alert("Invalid amount!");
                    _retValue = false;
                }
                else if (_amount < 1000) {
                    //alert("Accessories or Modifications amount should be greater than or equal 1000.");

                    _retValue = false;
                }

                if (_retValue == true) {
                    txtNewSumInsured.value = parseInt(txtSumInsured.value) + parseInt(_amount);
                    if (lblSumInsured != null)
                        lblSumInsured.innerHTML = addCommas(txtNewSumInsured.value.toString());
                }
            }
            else {
                _retValue = false;
                //alert("Please select car model first.");
            }

            arguments.IsValid = _retValue;
        }

        function CheckCTPLValidationCss() {
            var ctrlDivYes = 'divYesCTPL';
            var ctrlDivNo = 'divNoCTPL';
            var txtText = '<%=txtCTPL.ClientID%>';
            var valCtrl = '<%=rfvCTPL.ClientID%>';
            ShowValidationEffectOption(ctrlDivYes, ctrlDivNo, txtText, valCtrl);
            return true;
        }

        function CheckAccModValidationCss() {
            var ctrlDivYes = 'divYesAccMod';
            var ctrlDivNo = 'divNoAccMod';
            var txtText = '<%=txtAccMod.ClientID%>';
            var valCtrl = '<%=rfvAccMod.ClientID%>';
            ShowValidationEffectOption(ctrlDivYes, ctrlDivNo, txtText, valCtrl);
            return true;
        }

        function CheckRedPlateValidationCss() {
            var ctrlDivYes = 'divYesRedPlate';
            var ctrlDivNo = 'divNoRedPlate';
            var txtText = '<=txtRedPlate.ClientID>';
            var valCtrl = '<=rfvRedPlate.ClientID>';
            ShowValidationEffectOption(ctrlDivYes, ctrlDivNo, txtText, valCtrl);
            return true;
        }

        function CheckClaimValidationCss() {
            var ctrlDivYes = 'divYesClaimLastYear';
            var ctrlDivNo = 'divNoClaimLastYear';
            var txtText = '<%=txtAnyClaim.ClientID%>';
            var valCtrl = '<%=rfvAnyClaim.ClientID%>';
            ShowValidationEffectOption(ctrlDivYes, ctrlDivNo, txtText, valCtrl);
            return true;
        }

        function CheckAddDriverValidationCss() {
            var ctrlDivYes = 'divYesAddDriver';
            var ctrlDivNo = 'divNoAddDriver';
            var txtText = '<%=txtAddDriver.ClientID%>';
            var valCtrl = '<%=rfvAddDriver.ClientID%>';
            ShowValidationEffectOption(ctrlDivYes, ctrlDivNo, txtText, valCtrl);
            return true;
        }

        function CheckRedPlate() {
            var ctrlTxt = document.getElementById('<=txtRedPlate.ClientID>');
            var ctrlY = document.getElementById('<=rdoYesRedPlate.ClientID>');
            var ctrlN = document.getElementById('<=rdoNoRedPlate.ClientID>');
            var valCtrl = document.getElementById('<=rfvRedPlate.ClientID>');

            if (ctrlY.checked == true || ctrlN.checked == true) {
                ctrlTxt.value = '1';
                valCtrl.style.visibility = 'hidden';
            }
            else {
                ctrlTxt.value = '';
            }
        }

        function CheckClaim() {
            var ctrlTxt = document.getElementById('<%=txtAnyClaim.ClientID%>');
            var ctrlY = document.getElementById('<%=rdoYesClaimLastYear.ClientID%>');
            var ctrlN = document.getElementById('<%=rdoNoClaimLastYear.ClientID%>');
            var valCtrl = document.getElementById('<%=rfvAnyClaim.ClientID%>');

            if (ctrlY.checked == true || ctrlN.checked == true) {
                ctrlTxt.value = '1';
                valCtrl.style.visibility = 'hidden';
            }
            else {
                ctrlTxt.value = '';
            }
        }

        function CheckCTPL() {
            var ctrlTxt = document.getElementById('<%=txtCTPL.ClientID%>');
            var ctrlY = document.getElementById('<%=rdoYesCTPL.ClientID%>');
            var ctrlN = document.getElementById('<%=rdoNoCTPL.ClientID%>');
            var valCtrl = document.getElementById('<%=rfvCTPL.ClientID%>');

            if (ctrlY.checked == true || ctrlN.checked == true) {
                ctrlTxt.value = '1';
                valCtrl.style.visibility = 'hidden';
            }
            else {
                ctrlTxt.value = '';
            }
        }

        function CheckAccMod() {

            var ctrlTxt = document.getElementById('<%=txtAccMod.ClientID%>');
            var ctrlY = document.getElementById('<%=rdoYesAccMod.ClientID%>');
            var ctrlN = document.getElementById('<%=rdoNoAccMod.ClientID%>');
            var valCtrl = document.getElementById('<%=rfvAccMod.ClientID%>');
            var txtNewSumInsured = document.getElementById('<%=txtNewSumInsured.ClientID%>');
            var txtSumInsured = document.getElementById('<%=txtSumInsured.ClientID%>');
            var lblSumInsured = document.getElementById('<%=lblSumInsured.ClientID%>');
            var txtAccModAmount = document.getElementById('<%=txtAccModAmount.ClientID%>');

            if (ctrlY.checked == true || ctrlN.checked == true) {
                ctrlTxt.value = '1';
                valCtrl.style.visibility = 'hidden';
                if (ctrlY.checked == true) {
                    ShowHideAccMod(true);
                    if (lblSumInsured != null)
                        lblSumInsured.innerHTML = addCommas(txtNewSumInsured.value.toString());
                }
                else {
                    ShowHideAccMod(false);
                    txtAccModAmount.value = "0";
                    txtNewSumInsured.value = txtSumInsured.value;
                    //alert(_SumInsured.toString());
                    if (lblSumInsured != null)
                        lblSumInsured.innerHTML = addCommas(txtSumInsured.value.toString());
                }
            }
            else {
                ctrlTxt.value = '';
                ShowHideAccMod(false);
            }
        }

        function addCommas(nStr) {
            nStr += '';
            var x = nStr.split('.');
            var x1 = x[0];
            var x2 = x.length > 1 ? '.' + x[1] : '';
            var rgx = /(\d+)(\d{3})/;
            while (rgx.test(x1)) {
                x1 = x1.replace(rgx, '$1' + ',' + '$2');
            }
            return x1 + x2;
        }

        function CheckAddDriver() {
            //alert('CheckAddDriver');
            var ctrlTxt = document.getElementById('<%=txtAddDriver.ClientID%>');
            var ctrlY = document.getElementById('<%=rdoYesAddDriver.ClientID%>');
            var ctrlN = document.getElementById('<%=rdoNoAddDriver.ClientID%>');
            var valCtrl = document.getElementById('<%=rfvAddDriver.ClientID%>');
            var ddlDrvCount = document.getElementById('<%=ddlDriverCount.ClientID%>');
            var divAddDriver = document.getElementById('<%=divAddDriver.ClientID%>');

            if (ctrlY.checked == true || ctrlN.checked == true) {
                ctrlTxt.value = '1';
                valCtrl.style.visibility = 'hidden';
            }
            else {
                ctrlTxt.value = '';
            }

            if (ctrlY.checked == true) {
                if (ddlDrvCount != null) {
                    ddlDrvCount.disabled = false;
                    //showhideDriver();
                }
                if (divAddDriver != null) divAddDriver.style.display = '';
            }
            else {
                //ddlDrvCount.options(0).selected = true;
                if (ddlDrvCount != null) {
                    ddlDrvCount.selectedIndex = 0;
                    ddlDrvCount.disabled = true;
                    //showhideDriver();
                }
                if (divAddDriver != null) divAddDriver.style.display = 'none';
            }
        }

        function CheckInsuranceType() {
            var ddlInsuranceType = document.getElementById("<%=ddlInsuranceType.ClientID%>");
            var divSumInsured = document.getElementById("divSumInsured");
            //var txtSumInsured = document.getElementById("<%=txtSumInsured.ClientID%>");
            //alert(ddlInsuranceType.value);
            //alert(divSumInsured.id);
            if (ddlInsuranceType.value >= 20) {
                divSumInsured.style.display = 'none';
                //txtSumInsured.value = '0';
            }
            else {
                divSumInsured.style.display = '';
            }
        }

        function ShowHideAll() {
            try {
                CheckInsuranceType();
                //IncreaseProgress(100);
                //HideLoading();
            }
            catch (ex) {
                alert(ex.name + ' ' + ex.message);
            }
        }

        OnOffUpdateProgress(false);
    </script>

    <script type="text/javascript">
        //<![CDATA[

                
        function ShowHidePasswordPanel(OnOff) {
            if (OnOff == true) {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = 'none';
            }
            else {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = '';
            }
        }

        function HideOnSubmit() {

            isHide = document.getElementById('<%=inputHideSignal.ClientID%>').value;

            //alert(isHide);
            if (isHide == "1") {
                HidePopup();
                ShowHidePasswordPanel(true);
            }
        }


        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);

        function BeginRequestHandler(sender, args) {
            //alert('begin');         
        }

        function EndRequestHandler(sender, args) {
            //alert('end');
            isHide = document.getElementById('<%=inputLoginHide.ClientID%>').value;

            if (isHide == "1") {
                HidePopup();
                ShowHidePasswordPanel(true);
                window.location = "class-1single.aspx"

            }
        }

        //window.onunload = OkGo;
        function OkGo() {
            alert(document.getElementById('<%=inputHideSignal.ClientID%>').value);
        }

        //]]--> 
    </script>

    <script src="/includes/carinsurance/profile.js" type="text/javascript"></script>

</asp:Content>
